#include<stdio.h>
int main()
{
	int x,a,b,c,count;
	scanf("%d",&x);
    count=0;
	for(a=x/5;a>0;a--)
	for(b=x/2;b>0;b--)
	for(c=x;c>0;c--)
	if(5*a+2*b+c==x){
	
	printf("fen5:%d, fen2:%d, fen1:%d ,total:%d\n",a,b,c,a+b+c);
	count++;
}
    printf("count = %d",count);
	return 0; 
 } 
